package com.example.controller;

import com.example.domain.User;
import com.example.domain.UserExample;
import com.example.interceptor.NullPointAdvice;
import com.example.mapper.UserMapper;
import com.example.service.UserService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("user")
public class UserController {

	@Resource
	UserService userService;

	@RequestMapping("")
	public List<User> key(){


		List<User> users =  userService.getUsers(0,Integer.MAX_VALUE);

		return users;
	}
}
